#ifndef STM32F1_STK_H_
#define STM32F1_STK_H_

#include "iodef.h"

typedef struct {
        __IO uint32_t CTRL;
        __IO uint32_t LOAD;
        __IO uint32_t VAL;
        __I  uint32_t CALIB;
}stk_reg_t;

#define STK_CTRL_ENABLE         _BIT(0)
#define STK_CTRL_TICKINT        _BIT(1)
#define STK_CTRL_CLKSOURCE      _BIT(2)
#define STK_CTRL_COUNTFLAG      _BIT(16)

#define STK     ((stk_reg_t *)SysTick_BASE)


#endif /* STM32F1_STK_H_ */
